package com.dwy2002.appointment.config;

import lombok.Getter;
import lombok.Setter;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * cors配置类
 *
 * @author 杜伟毅
 * @version 1.0
 * @since 2025/05/18
 */
@Getter
@Setter
@Component
@ConfigurationProperties(prefix = "cors")  // 配置前缀为 cors
public class CorsProperties {
    private List<String> frontendUrls;  // 属性名与YAML中的键匹配
}
